<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>

    var obj = {
        name:"达姆",
        son:"小达姆"
    }
    //冻结对象
    Object.freeze(obj)


    obj.wife = "冬雨";
    delete obj.name
    obj.son="xxx"; //当前只有修改原有属性值的操作可以成功
    console.log(obj);
</script>
</html>